<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位案例</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .container{
            width: 912px;
            height: 600px;
            margin: 0 auto;
            /* background: yellow; */
        }
        .box{
            width: 275px;
            height: 275px;
            border: 6px solid #cccccc;
            position: relative;
            float: left;
            margin-right: 25px;
            margin-bottom: 25px;
        }
        .box .pic{
            width: 100%;
            height: 100%;    
        }
        .box .icon{
            position: absolute;
            left: 7px;
            bottom: 7px;
        }
        .box .greenicon{
            display: none;
        }
        .box p{
            position: absolute;
            left: 0;
            top: 0;
            color: white;
            padding: 7px 5px;
            display: none;
            font-size: 14px;
        }

        .box:hover .greenicon{
            display: block;
        }      
        .box:hover p{
            display: block; 
        }
        .box:hover .pic{
            opacity: 0.7;
            /* opacity 半透明图片属性 */
        }
        .rightpic{
            margin-right: 0px;
        }        
    </style>
</head>
<body>
    <div class="container">
        <div class="box">
            <img src="./定位案例img/img001.jpg" alt="" class="pic">
            <img src="./定位案例img/tu.gif" alt="" class="icon">
            <img src="./定位案例img/tu2.gif" alt="" class="icon greenicon">
            <p>
                <img src="./定位案例img/logo.gif" alt="">
                <span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio, quas vitae debitis obcaecati cum pariatur error delectus. Ullam nemo natus necessitatibus quas? Et dignissimos libero quidem beatae voluptate esse. Voluptatem.</span>
            </p>
        </div>
        <div class="box">
            <img src="./定位案例img/img001.jpg" alt="" class="pic">
            <img src="./定位案例img/tu.gif" alt="" class="icon">
            <img src="./定位案例img/tu2.gif" alt="" class="icon greenicon">
            <p>
                <img src="./定位案例img/logo.gif" alt="">
                <span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio, quas vitae debitis obcaecati cum pariatur error delectus. Ullam nemo natus necessitatibus quas? Et dignissimos libero quidem beatae voluptate esse. Voluptatem.</span>
            </p>
        </div>
        <div class="box rightpic">
            <img src="./定位案例img/img001.jpg" alt="" class="pic">
            <img src="./定位案例img/tu.gif" alt="" class="icon">
            <img src="./定位案例img/tu2.gif" alt="" class="icon greenicon">
            <p>
                <img src="./定位案例img/logo.gif" alt="">
                <span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio, quas vitae debitis obcaecati cum pariatur error delectus. Ullam nemo natus necessitatibus quas? Et dignissimos libero quidem beatae voluptate esse. Voluptatem.</span>
            </p>
        </div>
        <div class="box ">
            <img src="./定位案例img/img001.jpg" alt="" class="pic">
            <img src="./定位案例img/tu.gif" alt="" class="icon">
            <img src="./定位案例img/tu2.gif" alt="" class="icon greenicon">
            <p>
                <img src="./定位案例img/logo.gif" alt="">
                <span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio, quas vitae debitis obcaecati cum pariatur error delectus. Ullam nemo natus necessitatibus quas? Et dignissimos libero quidem beatae voluptate esse. Voluptatem.</span>
            </p>
        </div>
        <div class="box">
            <img src="./定位案例img/img001.jpg" alt="" class="pic">
            <img src="./定位案例img/tu.gif" alt="" class="icon">
            <img src="./定位案例img/tu2.gif" alt="" class="icon greenicon">
            <p>
                <img src="./定位案例img/logo.gif" alt="">
                <span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio, quas vitae debitis obcaecati cum pariatur error delectus. Ullam nemo natus necessitatibus quas? Et dignissimos libero quidem beatae voluptate esse. Voluptatem.</span>
            </p>
        </div>
        <div class="box rightpic">
            <img src="./定位案例img/img001.jpg" alt="" class="pic">
            <img src="./定位案例img/tu.gif" alt="" class="icon">
            <img src="./定位案例img/tu2.gif" alt="" class="icon greenicon">
            <p>
                <img src="./定位案例img/logo.gif" alt="">
                <span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio, quas vitae debitis obcaecati cum pariatur error delectus. Ullam nemo natus necessitatibus quas? Et dignissimos libero quidem beatae voluptate esse. Voluptatem.</span>
            </p>
        </div>
    </div>
</body>
</html>